package run;

/**
 * @author wei.yang on 2018/8/11
 */
public class Parent {

    private static String PARENT = "parent";

    static {
        System.out.println("parent static:\t" + System.currentTimeMillis());
    }

    public Parent() {
        System.out.println("parent construct");
    }

    public static void parent() {
        System.out.println("parent method.");
    }

    /**
     * 父类的内部类
     */
    static class ParentInner {
        private static String CHILD_INNER = "parent inner.";

        static {
            System.out.println("parent inner static");
        }

        public static void parentInner(){
            System.out.println("parent inner method.");
        }
    }
}
